package com.mapbased.util;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: mapbased.com</p>
 *
 * @author Chang Huanyou (Baily)
 * @version 1.0
 */
public class SpringConfigLoader implements  SpringBean
{
    java.util.Properties p=new java.util.Properties();
    // private String location;
    public SpringConfigLoader()
    {
        super();
    }

    public String getValue(String key)
    {
        return p.getProperty(key);
    }

    public void setLocation(String location)
        throws java.io.IOException

    {
        p.load(Thread.currentThread().getContextClassLoader().
               getResourceAsStream(location));
    //    p.list(System.out);
        // this.location=location;
    }
}
